/*
 * Event.cpp
 *
 *  Created on: 12-12-2010
 *      Author: Przemek
 */

#include "gui/Event.hpp"

Event::Event(const Control* source) :
	source(source)
{
}

Event::Event(const Event& other) :
	source(other.source)
{

}

Event& Event::operator=(const Event& other)
{
	if(this != &other)
	{
		source = other.source;
	}

	return *this;
}

const Control* Event::getSource() const
{
	return source;
}

void Event::setSource(const Control* source)
{
	this->source = source;
}
